package com.qf.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@Controller
public class ViewController {

    // http://localhsot/back/user/userList.html
    // http://localhsot/back/goodsType/getTypeList.html

    @GetMapping("{model}/{page}.html")
    public String toPage(@PathVariable String model, @PathVariable String page){
        return model+"/"+page;
    }
}
